﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QLTV.Forms
{
    public partial class frmPleaseWait : BaseForm
    {
        public volatile bool ShouldCloseNow;
        public frmPleaseWait()
        {
            InitializeComponent();
        }
        int giay = 0;
        private void timer1_Tick(object sender, EventArgs e)
        {
            giay ++;
           
            if (giay == 10)
            {
                this.Close();
            }
            if (ShouldCloseNow)
                Close();

        }

        private void frmPleaseWait_Load(object sender, EventArgs e)
        {
            
            ShouldCloseNow = false;

            timer1.Start();
            lblLoading.Text = rm.GetString("sLoading", myCultureInfo);
            lblPlzwait.Text = rm.GetString("sPlzwaiting", myCultureInfo);
    
        }
    }
}